<table width="100%" cellspacing="1" cellpadding="2" id="list-table">
    <tr>
   	<#--
				<th>ID</th>
				
				-->
        <th>汽车名称</th>
        <th>汽车标识</th>
        <th>牌照</th>
        <th>汽车图片</th>
       
        <th>灰色图片</th>
          
        <th>GIF图片1</th>
          <th>GIF图片2</th>
            <th>GIF图片3</th>
              <th>GIF图片4</th>
              
                <th>GIF图片1</th>
                  <th>GIF图片2</th>
                    <th>GIF图片3</th>
                      <th>GIF图片4</th>
                      
        <th>激活条件上限</th>
            
            <th>激活条件描述 </th>
            <th>创建时间</th>
        <th>操作</th>
    </tr>
<#if (carModelList?size>0) >
    <#list  carModelList as carModel>
        <tr align="center"   id="_${carModel.carModelId}">
        <#--  <td align=" " class="first-cell">
                <span>${carModel.carModelId}</span>
                
            </td>-->
            <td>
                <span>${carModel.carName}</span>
                
            </td>
           <td>
                <span>${carModel.carTag}</span>
                
            </td>
            <!--
      		<td   nowrap="nowrap">
					<#if (carModel.carLevel)??>
					 
					
							${carModel.carLevel}
 
					
					</#if>
					</td>
					  	<td   nowrap="nowrap">
					<#if (carModel.isTopLevel)??>
					 
					
							 
						 <#if carModel.isTopLevel=='2' >
						 顶级
						</#if>
						 <#if carModel.isTopLevel=='1' >
							非顶级
						</#if>
					 
					</#if>
					 
					</td>
					-->
            
            <td  >
                    	<#if (carModel.carLicencePlate)??>
                    	${carModel.carLicencePlate}
                    	</#if>
                    
                    
                    </td>
             
             <td   >
                    <#if (carModel.carImage)??>
           
                    	<img src="../${carModel.carImage}" width="60px">
                    	</#if>
                    
                   
                    </td>
                 
                    <td   align="">
                           <#if (carModel.carShadowImage)??>
                     
                    	<img src="../${carModel.carShadowImage}" width="60px">
                    	</#if>
                    
                    </td>
                        
                    <td   align="">
                       <#if (carModel.carForwardImage1)??>
         
                    	<img src="../${carModel.carForwardImage1}" width="30px">
                    </#if>
                  
                    </td>
                    
                     <td   align="">
                       <#if (carModel.carForwardImage2)??>
         
                    	<img src="../${carModel.carForwardImage2}" width="30px">
                    </#if>
                  
                    </td>
                    
                     <td   align="">
                       <#if (carModel.carForwardImage3)??>
         
                    	<img src="../${carModel.carForwardImage3}" width="30px">
                    </#if>
                  
                    </td>
                    
                     <td   align="">
                       <#if (carModel.carForwardImage4)??>
         
                    	<img src="../${carModel.carForwardImage4}" width="30px">
                    </#if>
                  
                    </td>
                    
                     <td   align="">
                       <#if (carModel.carRetreatImage1)??>
         
                    	<img src="../${carModel.carRetreatImage1}" width="30px">
                    </#if>
                  
                    </td>
                    
                     <td   align="">
                       <#if (carModel.carRetreatImage2)??>
         
                    	<img src="../${carModel.carRetreatImage2}" width="30px">
                    </#if>
                  
                    </td>
                    
                     <td   align="">
                       <#if (carModel.carRetreatImage3)??>
         
                    	<img src="../${carModel.carRetreatImage3}" width="30px">
                    </#if>
                  
                    </td>
                    
                     <td   align="">
                       <#if (carModel.carRetreatImage4)??>
         
                    	<img src="../${carModel.carRetreatImage4}" width="30px">
                    </#if>
                  
                    </td>
                    
                    <td   align="">
                    
                     <#if (carModel.upperLimit)??>
           
                   ${carModel.upperLimit} 
                    	</#if>
                    
            </td>     
             
           
            <td>
               <#if (carModel.carDesc)??>
                     ${carModel.carDesc}
               </#if>
        	</td>
        	 <td>
               <#if (carModel.addTime)??>
                     ${carModel.addTime?string("yyyy-MM-dd HH:mm:ss")}
               </#if>
        	</td>
            <td   align="center">
            <a	href="../member/getCarModelById.action?carModelId=${carModel.carModelId}">编辑</a>
            <#--|
           
           
            <a  onclick="{if(confirm('你确定要删除吗？')){return true;}return false;}" href="../member/deleteCarModel.action?carModelId=${carModel.carModelId}">删除</a>
           -->
           
            </td>
        </tr>
    </#list>
</#if>

</table>
<script type="text/javascript">
     listTable.action = "ajaxQueryCarModelList.action";
     listTable.currentPage=${page.currentPage};
     listTable.pageCount=${(page.totalPage)?c};
     listTable.recordCount=${page.allRow};
 </script>
<!-- 分页 -->
<table id="page-table" cellspacing="0">
			<tr>
				<td align="right" nowrap="true">
					<div id="turn-page">
					共<span id="totalRecords">${page.allRow} </span>条记录&nbsp; 
					共<span	id="totalPages">${page.totalPage}</span> 页&nbsp;
				当前第<span	id="pageCurrent">${page.currentPage}</span>页&nbsp;  
	     
	     <!--也许可以换种方式，呵呵，不用人工输入，用下拉列表-->
	     每页显示记录条数 <input type='text' size='3' id='pageSize' value="${page.pageSize}" onkeypress="return listTable.changePageSize(event)" />
	   <!--查询动作-->
	    <input type='hidden' size='3' id='action' value="ajaxQueryCarModelList.action"/>
	       
							
						<span id="page-link">  
						<a	href="javascript:listTable.gotoPageFirst()">第一页</a> 
						<a	href="javascript:listTable.gotoPagePrev()">前一页</a> 
						<a	href="javascript:listTable.gotoPageNext()">下一页</a> 
						<a	href="javascript:listTable.gotoPageLast()">最后一页</a> 
						<select	id="gotoPage" onchange="listTable.gotoPage(this.value)">
						<#assign x=page.totalPage>
						<#assign y=page.currentPage>
						<#list 1 .. x as i>
						<#if y==i >
						    <option value="${i}" selected="selected">${i}</option>
						<#else>
							<option value="${i}" >${i}</option>
						</#if>
						</#list>
           </select>
        </span>
        </div>
        </td>
        
    </tr>
</table>
